pp108 : getSelectedRow() Method

getSelectedRow() Method


This method returns the row object of the currently selected row. You can select only one row at any instance.

Syntax


xgridId.getSelectedRow( )

Parameters


No parameters.

Return Value


Returns a row object. For details, see row object. Returns null when the row is not found.

Remark


One of the properties of the rowObject isrow. This property contains the HTML node of the row. However, this HTML is not always available for all rows. For some rowObjectsrowandrowFreezeColumnare null.

Example


To view the example, see getFirstRow().

See Also


xgrid, getFirstRow(), getPreviousRow(), getNextRow(), getLastRow(), row object, cell object